//
//  ShareTableViewCell.swift
//  CJXSwiftStoryboard
//
//  Created by CJX on 2016/10/21.
//  Copyright © 2016年 caijianxi. All rights reserved.
//

import UIKit

class ShareTableViewCell: UITableViewCell {

    var priceLabel = UILabel()
    var shareBtn  = UIButton(type: .custom)
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: .default, reuseIdentifier: nil)
        
        priceLabel.frame = CGRect(x: 30, y: SCREEN_HEIGHT*0.01, width: SCREEN_WIDTH*0.3, height: SCREEN_HEIGHT*0.06)
        priceLabel.font = UIFont.systemFont(ofSize: 16)
        self.addSubview(priceLabel)
        
        
        shareBtn.frame = CGRect( x: SCREEN_WIDTH-120, y: SCREEN_HEIGHT*0.01, width: 100, height: SCREEN_HEIGHT*0.06)
        shareBtn.setTitle("Share", for: UIControlState())
        shareBtn.setTitleColor(UIColor.black, for: UIControlState())
        self.addSubview(shareBtn)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
